﻿using AutoMapper;
using SuYuanSystem.Domain;
using SuYuanSystem.WebApi.MedialRs.Commands.CultivationInfos;
using SuYuanSystem.WebApi.MedialRs.Commands.Enterprises;
using SuYuanSystem.WebApi.MedialRs.Commands.Farmss;
using SuYuanSystem.WebApi.MedialRs.Commands.Slaughters;
using SuYuanSystem.WebApi.MedialRs.Commands.TracebilityCommand;

namespace SuYuanSystem.WebApi
{
    public class AutoMapperFile : Profile
    {
        public AutoMapperFile()
        {
            CreateMap<TracebilityCommand, Tracebility>().ReverseMap();
            CreateMap<TracebilityUpdateCommand, Tracebility>().ReverseMap();
            CreateMap<CultivationInfoAddCommands, CultivationInfo>().ReverseMap();
            CreateMap<FarmsAddCommands, Farms>().ReverseMap();
            CreateMap<SlaughterCommands, Slaughter>().ReverseMap();
            CreateMap<EnterpriseCommands, Enterprise>().ReverseMap();
        }
    }
}
